Remove useless when
authorjustbur <justin@burkett.cc>
Wed, 15 Jul 2015 13:59:24 +0000 (09:59 -0400)
committerjustbur <justin@burkett.cc>
Wed, 15 Jul 2015 13:59:24 +0000 (09:59 -0400)
which-key.el

index a72187b3961840ce69bb2a732d2f89465743e850..bfc0ff5e5d22b764b6c8ffd9724ee7078beca86b 100644 (file)
@@ -851,9 +851,9 @@ value of `which-key-show-prefix'.  SEL-WIN-WIDTH is passed to
                               (concat prefix-w-face "  ")
                             (concat prefix-w-face "-\n"))))
          (max-dims (which-key--popup-max-dimensions sel-win-width))
-         (max-lines (when (car max-dims) (car max-dims)))
+         (max-lines (car max-dims))
+         (avl-width (cdr max-dims))
          (prefix-width (if (eq which-key-show-prefix 'left) prefix-len 0))
-         (avl-width (when (cdr max-dims) (cdr max-dims)))
          (keys-rem formatted-keys)
          (max-pages (+ 1 (length formatted-keys)))
          (page-n 0)